package com.bigger.arch.app.service.controller;

import com.bigger.arch.app.biz.IUserBiz;
import com.bigger.arch.app.repository.model.UserModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value ="/user",produces = MediaType.APPLICATION_JSON_VALUE)
public class UserController {

    @Autowired
    private IUserBiz userBiz;

    @ResponseBody
    @RequestMapping(value = "/getItem" )
    public UserModel getItem(Integer id) {

        return userBiz.getItem(id);
    }
}
